#include "location.h"
#include <stdio.h>

using namespace std;


//constructors
Location::Location()
{

}

Location::Location(int id)
{

}

Location::Location(int x, int y)
{
    //set locations
    this->setX(x);
    this->setY(y);
}

Location::Location(int x, int y, int r)
{
    //set locations
    this->setX(x);
    this->setY(y);
    this->setRotation(r);
}

//getters and setters
int Location::getX()
{
    return this->x_;
}
int Location::getY()
{
    return this->y_;
}
int Location::getRotation()
{
    return this->rotation_;
}

void Location::setX(int x)
{
    this->x_=x;
}
void Location::setY(int y)
{
    this->y_=y;
}
void Location::setRotation(int r)
{
    this->rotation_=r;
}



void Location::setTestLocation(int x,int y,int r)
{
	this->rotation_ = r;
	this->y_ = y;
	this->x_ = x;
}
